package xxl.robotlegs.extensions.signalcommandmap 
{
	import xxl.robotlegs.extensions.signalcommandmap.api.ISignalCommandMap;
	import xxl.robotlegs.extensions.signalcommandmap.impl.SignalCommandMap;
	import xxl.robotlegs.framework.api.IContext;
	import xxl.robotlegs.framework.api.IExtension;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class SignalCommandMapExtension implements IExtension 
	{
		
		public function SignalCommandMapExtension() 
		{
			
		}
		
		public function toString():String
		{
			return "SignalCommandMapExtension（简介：提供一个SignalCommandMap，使ISignal可以直接触发Command。必要依赖：CommandCenterExtension）";
		}
		
		/* INTERFACE xxl.robotlegs.framework.api.IExtension */
		
		public function extend(context:IContext):void 
		{
			context.injector.map(ISignalCommandMap).toSingleton(SignalCommandMap);
		}
		
	}

}